package vitamin.demo.certification.service;

import lombok.NonNull;
import org.springframework.http.HttpRequest;
import vitamin.demo.pojo.User;

import javax.servlet.http.HttpServletRequest;

public interface AdminService {
    User vertify(User user, String password);

    boolean passwordMatch(User user,String password,String correctPassword);

    User getUserByusername(String username);

    String typeCheck(HttpServletRequest request);

    String buildToken(String username);

    boolean register(String username,String password,String nickname);

}
